package cn.miju.admin.system.vo;

import cn.miju.admin.framework.model.BaseInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * <pre>
 * 修改密码
 * </pre>
 *
 * @author zhuming
 * @version 1.0.0
 * @since 2023-03-31 10:04
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class UpdatePasswordInVO extends BaseInfo {
    /**
     * 旧密码
     */
    @ApiModelProperty(value = "旧密码", required = true)
    @NotBlank(message = "传入旧密码不能为空")
    private String oldPassword;
    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "传入新密码不能为空")
    private String newPassword;
}
